<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 * 
 * Licensed under The LGPL License
 * Redistributions of files must retain the above copyright notice.
 * 
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://code.google.com/p/feather-cm
 * @license      http://www.opensource.org/licenses/lgpl-license.php The LGPL License
 */

class PublishBehavior
{
	function setRights($published, $aco)
	{
		$Acl = new Acl;
		
		if ($published == PUBLISH_ONLINE)
			$Acl->grant('Group.all',  $aco, 'read');
		else
			$Acl->revoke('Group.all', $aco, 'read');
	}
}
?>